<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>BmobPush Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1333)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">BmobSDK </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">bmob</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	

	
	<optgroup label="Class Methods">
		
		<option value="//api/name/handlePush:">+ handlePush:</option>
		
		<option value="//api/name/push">+ push</option>
		
		<option value="//api/name/sendPushDataToChannelInBackground:withData:">+ sendPushDataToChannelInBackground:withData:</option>
		
		<option value="//api/name/sendPushDataToChannelInBackground:withData:block:">+ sendPushDataToChannelInBackground:withData:block:</option>
		
		<option value="//api/name/sendPushDataToQueryInBackground:withData:">+ sendPushDataToQueryInBackground:withData:</option>
		
		<option value="//api/name/sendPushDataToQueryInBackground:withData:block:">+ sendPushDataToQueryInBackground:withData:block:</option>
		
		<option value="//api/name/sendPushMessageToChannelInBackground:withMessage:">+ sendPushMessageToChannelInBackground:withMessage:</option>
		
		<option value="//api/name/sendPushMessageToChannelInBackground:withMessage:block:">+ sendPushMessageToChannelInBackground:withMessage:block:</option>
		
		<option value="//api/name/sendPushMessageToQueryInBackground:withMessage:">+ sendPushMessageToQueryInBackground:withMessage:</option>
		
		<option value="//api/name/sendPushMessageToQueryInBackground:withMessage:block:">+ sendPushMessageToQueryInBackground:withMessage:block:</option>
		
	</optgroup>
	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/expireAfterTimeInterval:">- expireAfterTimeInterval:</option>
		
		<option value="//api/name/expireAtDate:">- expireAtDate:</option>
		
		<option value="//api/name/pushDate:">- pushDate:</option>
		
		<option value="//api/name/sendPushInBackground">- sendPushInBackground</option>
		
		<option value="//api/name/sendPushInBackgroundWithBlock:">- sendPushInBackgroundWithBlock:</option>
		
		<option value="//api/name/setChannel:">- setChannel:</option>
		
		<option value="//api/name/setChannels:">- setChannels:</option>
		
		<option value="//api/name/setData:">- setData:</option>
		
		<option value="//api/name/setMessage:">- setMessage:</option>
		
		<option value="//api/name/setQuery:">- setQuery:</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">BmobPush Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>NSObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>BmobPush.h</td>
</tr>
						</tbody></table></div>
					

                    

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/push" title="push"></a>
	<h3 class="method-title"><code><a href="#//api/name/push">+&nbsp;push</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>创建一个推送对象</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (BmobPush *)push</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>一个推送对象</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setQuery:" title="setQuery:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setQuery:">&ndash;&nbsp;setQuery:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置查询里的约束条件</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setQuery:(BmobQuery *)<em>query</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>query</code></th>
						<td><p>一般是Installation表的查询</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setChannels:" title="setChannels:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setChannels:">&ndash;&nbsp;setChannels:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置多个订阅频道</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setChannels:(NSArray *)<em>channels</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>channel</code></th>
						<td><p>多个订阅频道放在数组里面</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setChannel:" title="setChannel:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setChannel:">&ndash;&nbsp;setChannel:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置单个订阅频道</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setChannel:(NSString *)<em>channel</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>channels</code></th>
						<td><p>订阅的频道</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setMessage:" title="setMessage:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setMessage:">&ndash;&nbsp;setMessage:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置推送消息</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setMessage:(NSString *)<em>message</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>message</code></th>
						<td><p>推送消息的内容</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setData:" title="setData:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setData:">&ndash;&nbsp;setData:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置推送消息</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setData:(NSDictionary *)<em>data</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>data</code></th>
						<td><p>推送消息的内容，data里要包含alert键及对应的推送消息内容</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/expireAtDate:" title="expireAtDate:"></a>
	<h3 class="method-title"><code><a href="#//api/name/expireAtDate:">&ndash;&nbsp;expireAtDate:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置过期的绝对日期时间</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)expireAtDate:(NSDate *)<em>date</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>date</code></th>
						<td><p>过期的日期时间</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/expireAfterTimeInterval:" title="expireAfterTimeInterval:"></a>
	<h3 class="method-title"><code><a href="#//api/name/expireAfterTimeInterval:">&ndash;&nbsp;expireAfterTimeInterval:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置多少秒后过期</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)expireAfterTimeInterval:(NSTimeInterval)<em>timeInterval</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>timeInterval</code></th>
						<td><p>多少秒过期，</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/pushDate:" title="pushDate:"></a>
	<h3 class="method-title"><code><a href="#//api/name/pushDate:">&ndash;&nbsp;pushDate:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置推送时间</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)pushDate:(NSDate *)<em>date</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>date</code></th>
						<td><p>推送的时期时间</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sendPushInBackground" title="sendPushInBackground"></a>
	<h3 class="method-title"><code><a href="#//api/name/sendPushInBackground">&ndash;&nbsp;sendPushInBackground</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>异步发送推送</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)sendPushInBackground</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sendPushInBackgroundWithBlock:" title="sendPushInBackgroundWithBlock:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sendPushInBackgroundWithBlock:">&ndash;&nbsp;sendPushInBackgroundWithBlock:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>异步发送推送</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)sendPushInBackgroundWithBlock:(BmobBooleanResultBlock)<em>block</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>block</code></th>
						<td><p>返回是否成功及错误信息</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sendPushMessageToChannelInBackground:withMessage:" title="sendPushMessageToChannelInBackground:withMessage:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sendPushMessageToChannelInBackground:withMessage:">+&nbsp;sendPushMessageToChannelInBackground:withMessage:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>异步发送推送</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)sendPushMessageToChannelInBackground:(NSString *)<em>channel</em> withMessage:(NSString *)<em>message</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>channel</code></th>
						<td><p>订阅频道</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>message</code></th>
						<td><p>推送消息内容</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sendPushMessageToChannelInBackground:withMessage:block:" title="sendPushMessageToChannelInBackground:withMessage:block:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sendPushMessageToChannelInBackground:withMessage:block:">+&nbsp;sendPushMessageToChannelInBackground:withMessage:block:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>异步发送推送</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)sendPushMessageToChannelInBackground:(NSString *)<em>channel</em> withMessage:(NSString *)<em>message</em> block:(BmobBooleanResultBlock)<em>block</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>channel</code></th>
						<td><p>订阅频道</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>message</code></th>
						<td><p>推送消息内容</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>block</code></th>
						<td><p>推送消息的结果，是否成功以及失败的错误信息</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sendPushMessageToQueryInBackground:withMessage:" title="sendPushMessageToQueryInBackground:withMessage:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sendPushMessageToQueryInBackground:withMessage:">+&nbsp;sendPushMessageToQueryInBackground:withMessage:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>异步发送推送</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)sendPushMessageToQueryInBackground:(BmobQuery *)<em>query</em> withMessage:(NSString *)<em>message</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>query</code></th>
						<td><p>Installation表查询里的约束条件</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>message</code></th>
						<td><p>推送消息内容</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sendPushMessageToQueryInBackground:withMessage:block:" title="sendPushMessageToQueryInBackground:withMessage:block:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sendPushMessageToQueryInBackground:withMessage:block:">+&nbsp;sendPushMessageToQueryInBackground:withMessage:block:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>异步发送推送</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)sendPushMessageToQueryInBackground:(BmobQuery *)<em>query</em> withMessage:(NSString *)<em>message</em> block:(BmobBooleanResultBlock)<em>block</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>query</code></th>
						<td><p>查询里的约束条件</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>message</code></th>
						<td><p>推送消息内容</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>block</code></th>
						<td><p>推送消息的结果，是否成功以及失败的错误信息</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sendPushDataToChannelInBackground:withData:" title="sendPushDataToChannelInBackground:withData:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sendPushDataToChannelInBackground:withData:">+&nbsp;sendPushDataToChannelInBackground:withData:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>异步发送推送</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)sendPushDataToChannelInBackground:(NSString *)<em>channel</em> withData:(NSDictionary *)<em>data</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>channel</code></th>
						<td><p>订阅频道</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>data</code></th>
						<td><p>推送消息内容，data里要包含alert键及对应的推送消息内容</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sendPushDataToChannelInBackground:withData:block:" title="sendPushDataToChannelInBackground:withData:block:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sendPushDataToChannelInBackground:withData:block:">+&nbsp;sendPushDataToChannelInBackground:withData:block:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>异步发送推送</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)sendPushDataToChannelInBackground:(NSString *)<em>channel</em> withData:(NSDictionary *)<em>data</em> block:(BmobBooleanResultBlock)<em>block</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>channel</code></th>
						<td><p>订阅频道</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>data</code></th>
						<td><p>推送消息内容，data里要包含alert键及对应的推送消息内容</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>block</code></th>
						<td><p>推送消息的结果，是否成功以及失败的错误信息</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sendPushDataToQueryInBackground:withData:" title="sendPushDataToQueryInBackground:withData:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sendPushDataToQueryInBackground:withData:">+&nbsp;sendPushDataToQueryInBackground:withData:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>异步发送推送</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)sendPushDataToQueryInBackground:(BmobQuery *)<em>query</em> withData:(NSDictionary *)<em>data</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>query</code></th>
						<td><p>Installation表查询里的约束条件</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>data</code></th>
						<td><p>推送消息内容，data里要包含alert键及对应的推送消息内容</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sendPushDataToQueryInBackground:withData:block:" title="sendPushDataToQueryInBackground:withData:block:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sendPushDataToQueryInBackground:withData:block:">+&nbsp;sendPushDataToQueryInBackground:withData:block:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>异步发送推送</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)sendPushDataToQueryInBackground:(BmobQuery *)<em>query</em> withData:(NSDictionary *)<em>data</em> block:(BmobBooleanResultBlock)<em>block</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>query</code></th>
						<td><p>Installation表查询里的约束条件</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>data</code></th>
						<td><p>推送消息内容，data里要包含alert键及对应的推送消息内容</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>block</code></th>
						<td><p>推送消息的结果，是否成功以及失败的错误信息</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/handlePush:" title="handlePush:"></a>
	<h3 class="method-title"><code><a href="#//api/name/handlePush:">+&nbsp;handlePush:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>弹出消息推送</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)handlePush:(NSDictionary *)<em>userInfo</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>userInfo</code></th>
						<td><p>推送消息内容</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BmobPush.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2015 bmob. All rights reserved. Updated: 2015-10-08</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>